From: Dario Faggioli Date: Thu, 14 Jun 2012 15:05:42 +0000 (+0100) Subject: libxl: propagate down the error from libxl_domain_sched_params_set X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8319 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e4a459fca595f572178e90fe3d7565b2648bce44;p=xen.git libxl: propagate down the error from libxl_domain_sched_params_set So that the caller (e.g., libxl__build_post() ) knows and can deal with it. Signed-off-by: Dario Faggioli Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 10f8c1f73c..a2e66558d3 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -173,9 +173,11 @@ int libxl__build_post(libxl__gc *gc, uint32_t domid, char *dom_path, *vm_path; xs_transaction_t t; char **ents, **hvm_ents; - int i; + int i, rc; - libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + rc = libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + if (rc) + return rc; libxl_cpuid_apply_policy(ctx, domid); if (info->cpuid != NULL)